package inherit;

/**
 * @author : niu niu
 * @version : 1.0.0
 * @date : 2022/9/9 21:58
 */
public class Child extends Parent{
    public static void main(String[] args) {
        Child child = new Child();
        child.eyes = "blue";
        child.name = "GNU";
        //显示继承
        System.out.println(child.eyes);
        System.out.println(child.name);
        //隐式继承 的属性不能直接在子类中使用，但是通过公有方法使用
        child.useCar();
        child.useMoney();
    }
}
